<% provide(:title, '注册') %>
<div class="concard noflex nobgc">
<div class="form">
<div class="fti">注册</div>
<%= form_with(model: @user, local: true) do |f| %>
<table>
  <tr>
    <td><%= f.label :name ,"用户名" %></td>
    <td><%= f.text_field :name %></td>
  </tr>
    <tr>
    <td><%= f.label :email %></td>
    <td><%= f.email_field :email %></td>
  </tr>
    <tr>
    <td><%= f.label :password ,"密码" %></td>
    <td><%= f.password_field :password, onkeyup:"javascript:checkpwd()" %></td>
  </tr>
    <tr>
    <td><%= f.label :password_confirmation, "确认您的密码" %></td>
    <td><%= f.password_field :password_confirmation, onkeyup:"javascript:checkpwd()" %></td>
  </tr>
  </table>
  <div id="checkpwd"></div>
<div><%= f.submit "提交", class: "btn submit",id:"ssubmit", disabled:"true" %></div>
<% end %>
</div>
</div>